const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 创建快捷访问
  userName: state => state.user.userInfo && state.user.userInfo.userName, // 创建快捷访问
  userId: state => state.user.userInfo.userId // 创建快捷访问
  // isLogin: state => !!state.user.token
}

export default getters
